﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainSite.Master" AutoEventWireup="true" CodeBehind="AssignEmployeeEvaluation_CustomForm.aspx.cs" Inherits="BSCMFF.Web.Pages.Evaluation_Setup.AssignEmployeeEvaluation_CustomForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
  
    <%--<telerik:RadComboBox ID="RadComboBoxEvaluations" runat="server" 
        DataSourceID="EntityDataSourceEvaluations" DataTextField="Name" 
        DataValueField="ID"
        DropDownWidth="300" Width="250"
        AppendDataBoundItems="true" 
            onselectedindexchanged="RadComboBoxEvaluations_SelectedIndexChanged"
            EmptyMessage="Select Evaluation"
            AutoPostBack="true">
        <Items>
            <telerik:RadComboBoxItem Text=". . ." runat="server" Value="0" />
        </Items>
        <HeaderTemplate>
            <table style="width: 275px" cellspacing="0" cellpadding="0">
                <tr>
                    <td style="width:200px; padding-right:10px">
                        <asp:Label ID="LabelName" runat="server" Text="Name" ></asp:Label>
                    </td>
                    <td >
                        <asp:Label ID="LabelStartDate" runat="server" Text="Start Date" ></asp:Label>
                    </td>
                </tr>
             </table>
        </HeaderTemplate>
        <ItemTemplate>
            <table>
                <tr>
                    <td style="width:200px; padding-right:10px">
                        <%# Eval("Name")%>
                    </td>
            
                    <td>
                        <%# Eval("StartDate")%>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </telerik:RadComboBox>

    <asp:CheckBox ID="CheckBoxOmitFinished" runat="server" Checked="true" AutoPostBack="true"/>--%>
    <bsc:EvaluationSelection ID="EvalSelection" runat="server" />
    <br />


    <bsc:EmployeeGroupSelection ID="EGS" runat="server" ActionButtonName="Preview Selection" Visible="false" 
    OnActionButtonClicked="RadButtonPreviewUsers_Click"  />


    <br />
 <asp:Panel ID="PanelAssignNewEmployees" runat="server" Visible="false"> 
        <asp:Label ID="LabelToAssignEmployees" runat="server" Text="Employees to be assigned" ></asp:Label>
        <br />
            <asp:PlaceHolder ID="PlaceHolderAssignNew" runat="server" >
                <table class="TableHeaerAssignEvaluation">
                    <tr>
                        <td style="width:200px">
                            <asp:Label ID="LabelFullname" runat="server" Text="Employee" ></asp:Label>
                        </td>
                        <td style="width:200px;padding-left:30px;padding-right:30px">
                            <asp:Label ID="LabelDepartment" runat="server" Text="Department" ></asp:Label>
                        </td>
                        <td style="width:300px">
                            <asp:Label ID="Label1" runat="server" Text="Evaluator" ></asp:Label>
                        </td>
                        
                    </tr>
                </table>
            </asp:PlaceHolder>
        <br />
        
</asp:Panel>

<br />
<asp:Panel ID="PanelAlreadyAssignedEmployees" runat="server" Visible="false">
    <asp:Label ID="LabelAlreadyAssignedEmployees" runat="server" Text="Already Assigned Employees" ></asp:Label>
    <br />
    <asp:PlaceHolder ID="PlaceHolderAlreadyAssigned" runat="server" >
        <table class="TableHeaerAssignEvaluation">
            <tr>
                <td style="width:200px">
                    <asp:Label ID="Label2" runat="server" Text="Employee" ></asp:Label>
                </td>
                <td style="width:200px;padding-left:30px;padding-right:30px">
                    <asp:Label ID="Label3" runat="server" Text="Department" ></asp:Label>
                </td>
                <td style="width:300px">
                    <asp:Label ID="Label4" runat="server" Text="Evaluator" ></asp:Label>
                </td>
                <td style="width:70px">
                        </td>
            </tr>
        </table>
    </asp:PlaceHolder>

</asp:Panel>
<br />
<asp:Panel ID="PanelConfirm" runat="server">
<telerik:RadButton ID="RadButtonConfirm" runat="server" Visible="false"
            Text="Confirm Canges" onclick="RadButtonConfirm_Click">
</telerik:RadButton>

<asp:Label ID="LabelError" runat="server" ForeColor="Red" ></asp:Label>

<%--<telerik:RadButton ID="RadButton1" runat="server" 
            Text="PostBack" >
</telerik:RadButton>--%>

</asp:Panel>
    </telerik:RadAjaxPanel>

    <asp:EntityDataSource ID="EntityDataSourceEvaluations" runat="server" 
        ConnectionString="name=BSCEntities" DefaultContainerName="BSCEntities" 
        EnableFlattening="False" EntitySetName="Evaluation_Period" 
        Select="it.[ID], it.[Name], it.[StartDate]">
    </asp:EntityDataSource>

</asp:Content>
